<?php
class History_pages extends Public_Controller
{
	function __construct()
	{
		parent::__construct();
	}
	
	function index(){
        $data['histories'] = new History_page();
        $data['histories']->where("status = 'approve'")->order_by("id","desc")->get_page(10);
        $this->template->build('index',$data);
    }
    
    function view($id){
        $data['history'] = new History_page($id);
        $this->template->build('view',$data);
    }
}
?>